package models;
import java.util.*;

public class Books {
  Map<Integer,Book> books = new LinkedHashMap<Integer,Book>();

  public Books() {
   books.put(11, new Book(
     "Java Swing", "paper", 3, "This book is all fine."));
   books.put(27, new Book(
     "\"Fun\" with <HTML>", "cloth", 5,
     "Trickier than quotes" + "\n" +
     "are new lines." + "\n\n" +
     "Creating separate paragraphs" + "\n" +
     "is another issue")
     );
  }
  public Book fetch(int id) { return books.get(id); }
  public Set<Integer> fetchIds() { return books.keySet(); }
}
